home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh -f
-
- #------------------------------------------------------------------------
- #
- # TeX is a public domain text processing system. It was developed by
- # Donald Knuth at Stanford University, and is made freely available
- # without license. TeX is a large and complicated program that goes
- # to extraordinary lengths to produce attractive typeset material.
- # However, straightforward text is very easy to typeset using \TeX\null.
- # So it's possible to start with easier text and work up to more
- # complicated situations. The document, GENTLE_INTRO.TEX, is included
- # in the "texfiles.tar" file. Instructions explaining how produce the
- # manual are included below.
- #
- # The installation of TeX requires approximately 11 Mbytes of permanent
- # space on your /usr disk (for the executables and other files), as well
- # as approximately 56 Mbytes of scratch space. The scratch space can
- # be on any available disk. The installation script can be run
- # directly from the CD-ROM.
- #
- # To run this installation script, you must first specify the path
- # of a directory for the scratch space (eg., /usr/tmp). A temporary
- # directory will be created within that directory called "TeX_install".
- # After the installation is completed successfully, you may remove
- # "TeX_install".
- #
- # Be sure that you have write access to the installation directory.
- # If the directory you want to use for this purpose is remotely mounted,
- # make sure you have write access to that disk by checking the /etc/exports
- # file on the remote machine. For instance, if you want to use the
- # directory, /d/tmp, on a machine named wally, then the /etc/exports
- # file on wally should include a line that looks something like this:
- # "/d -rw ...". If the "-rw" option is not included, add it, and
- # then (as "root" on wally) execute the command, "exportfs -a".
- #
- # To begin the installaion of TeX, specify the installation directory
- # by typing:
- #
- # setenv INSTALL_DIR /a/directory/path
- #
- # Because of the large amount of information generated by the
- # installation procedure, it's best to save the output into a file.
- #
- # To execute the installation script, type:
- #
- # su
- # (time ./makeTeX) >& /usr/tmp/maketex.out &
- #
- # Note that you must execute "makeTeX" from the directory where resides,
- # and that "root" permission is required. The installation takes
- # approximately 35 minutes on a 4D/35. The metafont generation takes
- # most of this time.
- #
- # To view the installation output:
- #
- # cd /usr/tmp
- # fold maketex.out > tmp
- # mv tmp maketex.out
- # more maketex.out
- #
- # In "maketex.out", you will find some errors and lots warnings.
- # Several installs get warnings from the loader about duplicate
- # modules, but I didn't take the time to thoroughly investigate
- # (ignore these). Also, several of the man pages were attempting
- # to move to BSD directories (not SYSV).
- #
- # If you don't find any glaring errors, move to the $INSTALL_DIR/TeX_install
- # directory and extract the files from the "texfiles.tar" file with the
- # command:
- #
- # tar xvof texfiles.tar
- #
- # This will create a "texfiles" directory containing the two files,
- # gentle.ps and gentle.tex.
- #
- # To test the software, log in as a regular user (not as "root") and
- # set the following environment variables:
- #
- # setenv TEXFONTS /usr/local/lib/tex/fonts/pk/laserwriter:/usr/local/lib/tex/fonts/tfm
- # setenv TEXINPUTS .:/usr/local/lib/tex/inputs
- # setenv TEXPKS /usr/local/lib/tex/fonts/pk/laserwriter
- #
- # If you'll be using TeX frequently, add the above lines to your .cshrc
- # file.
- #
- # Now do the following:
- #
- # tex gentle.tex
- # dvips gentle.dvi
- #
- # This should create a "gentle.ps" file, which is a PostScript document
- # containing the TeX manual. The manual is 95 pages long.
- #
- # Finally, after you are satisfied that the installation was successful,
- # save the "texfiles" directory, and after looking around at the additional
- # directories for any useful programs, data, examples, etc., remove the
- # $INSTALL_DIR/TeX_install directory.
- #
- #
- # -------------------------------------------------------
- #
- #
- # If your IRIS workstation has the EOE (Execution-Only-Environment) system
- # software installed, you may still install TeX. To do this, log in as
- # "root" and extract the executables by typing the command:
- #
- # tar xvof binaries.tar
- #
- # This will give you all the binaries in /usr/local that are needed
- # to run TeX. These were created using IRIX 4.0.1, so they will not
- # work if you are running an OS prior to IRIX 4.0.
- #
- #
- #
- #************************************************************************
- #
- # Script modified by Marvin Kong for use in the Developer's Toolbox
- # (MKK, 12/11/91)
- #
- #************************************************************************
- #
- # The following script was created by Chuck Adams,
- # adams@relay.dallas.sgi.com, using the source files
- # from byron.u.washington.edu, and other sites.
- #
- # And a special thanks to:
- # Jan Labanowski
- # Ohio Supercomputer Center
- # jkl@osc.edu
- # who made tex_for_sgi document available to everyone.
- # The work that Jan did, certainly made it much easier
- # for the rest of us.
- #
- # No warranties, guarantees, etc. apply.
- #
- # Any additional hacks greatly appreciated by adams@relay.dallas.sgi.com
- # A ftp site will located to place everything in, but if you
- # got this, then you probably don't need it at this time.
- #
- # ENJOY. MAY THE FORCE BE WITH YOU.
- #
- #---------------------------start of script----------------------
- #
- #
- # Specify path to the TeX tar files.
- #
- set tarpath=`pwd`
- #
- #
- # Open installation directory.
- #
- if ( ! -d $INSTALL_DIR ) then
- echo ' '
- echo 'ERROR: The INSTALL_DIR directory:'
- echo ' '
- echo $INSTALL_DIR
- echo ' '
- echo 'does not exist.'
- echo ' '
- echo 'To specify INSTALL_DIR, type:'
- echo ' '
- echo ' setenv INSTALL_DIR /a/directory/path'
- echo ' '
- echo 'and then rerun this script.'
- echo ' '
- exit
- endif
- #
- if ( -d $INSTALL_DIR/TeX_install ) then
- /bin/rm -rf $INSTALL_DIR/TeX_install
- endif
- mkdir $INSTALL_DIR/TeX_install
- chmod 777 $INSTALL_DIR/TeX_install
- #
- set instpath=$INSTALL_DIR/TeX_install
- #
- #
- # Create link to communicate with other Makefiles.
- #
- ln -s $instpath /usr/TeX_distribution
- #
- #
- # The unaliases are just in case you have -i turned on.
- #
- unalias ls
- unalias rm
- unalias cp
- #
- # Set /usr/local/bin into path for later makefiles.
- #
- set path = ( $path /usr/local/bin )
- #
- #
- \rm -rf /usr/local/lib/tex
- \rm -rf /usr/local/lib/mf
- #
- mkdir -p /usr/local/lib/tex
- mkdir -p /usr/local/lib/tex/formats
- mkdir -p /usr/local/lib/tex/fonts
- mkdir -p /usr/local/lib/tex/fonts/pk
- mkdir -p /usr/local/lib/tex/fonts/pk/laserwriter
- mkdir -p /usr/local/lib/tex/fonts/tfm
- mkdir -p /usr/local/lib/tex/inputs
- mkdir -p /usr/local/lib/tex/bib
- mkdir -p /usr/local/lib/tex/bibtex
- mkdir -p /usr/local/lib/mf
- mkdir -p /usr/local/lib/mf/inputs
- mkdir -p /usr/local/lib/mf/bases
- #
- if ( ! -d /usr/local/bin ) then
- mkdir -p /usr/local/bin
- endif
- #
- #
- cd $instpath
- #
- #
- tar xof $tarpath/Unsupported.tar
- tar xof $tarpath/ams.tar
- tar xof $tarpath/babel.tar
- tar xof $tarpath/bsdtar.tar
- tar xof $tarpath/cmfonts.tar
- tar xof $tarpath/compress.tar
- tar xof $tarpath/dvips547.tar
- tar xof $tarpath/dvipsafm.tar
- tar xof $tarpath/dvipslib.tar
- tar xof $tarpath/dviware.tar
- tar xof $tarpath/latexfonts.tar
- tar xof $tarpath/patch.tar
- tar xof $tarpath/tex314.tar
- tar xof $tarpath/utilityfonts.tar
- #
- # Now make files from tex_for_sgi.
- #
- sed -n '132,136p' $tarpath/tex_for_sgi >$instpath/TeX3.14/emplant
- chmod 755 $instpath/TeX3.14/emplant
- #
- sed -n '141,437p' $tarpath/tex_for_sgi >$instpath/TeX3.14/Makefile
- #
- sed -n '444,627p' $tarpath/tex_for_sgi >$instpath/TeX3.14/site.h
- #
- sed -n '633,643p' $tarpath/tex_for_sgi >$instpath/TeX3.14/mypaths
- #
- #
- sed -n '813,880p' $tarpath/tex_for_sgi >$instpath/DVIware/crt-viewers/X/xdvi/Makefile
- #
- sed -n '897,1113p' $tarpath/tex_for_sgi >$instpath/dvips/Makefile
- #
- sed -n '1120,1153p' $tarpath/tex_for_sgi >$instpath//dvips/config.ps
- #
- sed -n '1160,1280p' $tarpath/tex_for_sgi >$instpath/dvips/MakeTeXPK
- #
- cp $tarpath/Makefile.bibtex $instpath/TeX3.14/bibtex/Makefile
- cp $tarpath/Makefile.TeX3.14 $instpath/TeX3.14/Makefile
- cp $tarpath/makepkfiles $instpath/dvips/makepkfiles
- #
- cd $instpath/TeX3.14
- #
- # Get rid of extraneous files in directory.
- #
- \rm -f Makefile-dist
- \rm -f site.h-dist
- \rm -f makefile
- #
- chmod 755 mypaths
- source mypaths
- chmod 755 $dl
- chgrp sys $dl
- chown bin $dl
- cp $wl/TeXfonts/* $fl
- #
- sed -n '655,714p' $tarpath/tex_for_sgi > $instpath/TeX3.14/Install_INPUTS
- #
- sh -x Install_INPUTS
- cp $tarpath/modes.mf /usr/local/lib/mf/modes.mf
- #
- # Now execute makefiles.
- #
- cd $instpath/TeX3.14
- make
- make install
- make formats
- make install-formats
- make bases
- make install-bases
- make manpages
- make install-manpages
- #
- # Now make xdvi.
- #
- echo begin xdvi make and install
- #
- cd $instpath/DVIware/crt-viewers/X/xdvi
- make xdvi
- make install
- #
- # Now make dvips.
- #
- cd $instpath/dvips
- make all
- chmod 755 dvips
- cp dvips /usr/local/bin
- cp ma
- #
- # Now make cminch.
- #
- ./MakeTeXPK cminch 300 300 magstep\(0\)
- #
- ./makepkfiles
- #
- # Go back and fix problems.
- #
- cd $instpath/TeX3.14/bibtex
- make
- mv bibtex /usr/local/bin
- #
- # Clean up some permissions and copy executables to /usr/local/bin.
- #
- cp $instpath/dvips/dvips /usr/local/bin
- cp $instpath/dvips/MakeTeXPK /usr/local/bin
- chmod 755 /usr/local/bin/dvips
- chmod 755 /usr/local/bin/MakeTeXPK
- cp $instpath/dvips/{*.tex,*.pro} /usr/local/lib/tex/inputs
- #
- chmod 755 /usr/local/lib
- chmod 755 /usr/local/lib/tex
- chmod 755 /usr/local/lib/tex/inputs
- chmod 755 /usr/local/lib/tex/fonts
- chmod 755 /usr/local/lib/tex/fonts/pk
- chmod 777 /usr/local/lib/tex/fonts/pk/laserwriter
- chmod 755 /usr/local/bin/bibtex
- chmod 755 /usr/local/lib/mf
- chmod 755 /usr/local/lib/mf/bases
- chmod 655 /usr/local/lib/mf/bases/*
- chmod 755 /usr/local/lib/tex/bibtex
- chmod 644 /usr/local/lib/tex/inputs/*
- #
- mkdir /usr/local/lib/tex/ps
- chmod 755 /usr/local/lib/tex/ps
- cp $instpath/dvips/*.pro /usr/local/lib/tex/ps
- chmod 644 /usr/local/lib/tex/ps/*
- #
- # Remove link.
- #
- /bin/rm /usr/TeX_distribution
- #
- # Copy texfile.tar to installation directory.
- #
- cp $tarpath/texfiles.tar $instpath
- #
- exit
-
-